'use strict';
var schedule = require("node-schedule"),
	BaseFun = require('../../../Base/server/controllers/Function'),
	entityCollection = require('../../../Base/server/controllers/EntityCollection');

var _schedules = {};
var _scheduleAPIs = [];

module.exports.addScheduleAPI = function(appName, api, apiName){
	_scheduleAPIs.push({
		_id: -(_scheduleAPIs.length + 1),
		Application: appName,
		Api: api,
		ApiName: apiName
	});
};

module.exports.getSchedules = function(req, res) {
	BaseFun.responseFun(res, null, _scheduleAPIs);
}